package com.test.learnkotlin


/**
 *Author: chinadragon
 *Time: 2024/3/11 09:17
 */
class Derived1(
    name: String,
    val lastName: String,
) : Base1(name.capitalize().also { println("Argument for Base1: $it") }) {

    init { println("Initializing Derived") }

    override val size: Int =
        (super.size + lastName.length).also { println("Initializing size in Derived: $it") }
}